package com.wtwd.campus.jdzc.common;

/**
 * @Author: ldaoliang
 * @DateTime: 2022/2/15 9:44
 * @Description:
 */
public class Constant {

    public static final String HEADER_TOKEN_KEY = "AccessToken";

    public static final int STATUS_NORMAL = 1;


    //客户端类型
    //教师
    public static final int TEACHER_TYPE = 1;
    //家长
    public static final int PARENT_TYPE = 0;

    public static final long WX_XCX_TOKEN_EXPIRE = 1L;   // 微信小程序token过期时间  1天

    public static final String XCX_JDZC_USER_TYPE = "JDZC_XCX_USER_TYPE_";

    public static final int PLATFORM_DEVICE = 1;//记录为导入平台的设备

    //设备的绑定状态
    public static final int DEVICE_BINDING_UNREGISTERED = 0;
    public static final int DEVICE_BINDING = 2;
    public static final int DEVICE_UNBINDING = 1;


    public static final String DEVICE_ONLINE_PREFIX = "DEVICE_ONLINE_";//redis中存储设备是否在线的前缀

    public static final String COMMAND_PREFIX = "DEVICE_COMMAND_";//redis中存储指令命令的前缀

    //微信公众号进行指令下发时存储的用户id(暂时不做修改)
    public static final int WX_COMMAND_USER_ID = -1;

    public static final String jdzcOrgCode = "A01A45A01";

    //告警类型消息是否最新存储前缀（JDZC）
    public static final String WARN_TYPE_IS_NEW_JDZC = "WARN_IS_NEW_JDCZ";


    //告警类型                  1.sos告警，2低电量,3.进围栏,4.出围栏,6关机告警,7.开机
    public static final Integer SOS_WARNING_TYPE = 1;
    public static final Integer LOW_BATTERY_WARNING_TYPE = 2;
    public static final Integer ENTER_FENCE_WARNING_TYPE = 3;
    public static final Integer LEFT_WARNING_TYPE = 4;
    public static final Integer SHUT_DOWN_WARNING_TYPE = 6;
    public static final Integer POWER_ON_WARNING_TYPE = 7;




    // 设备状态  0-未绑定设备 1-在线 2-离线
    public static final int WX_DEVICE_NOT_FOUND = 0;
    public static final int WX_DEVICE_ONLINE = 1;
    public static final int WX_DEVICE_OFFLINE = 2;
}
